package org.itsolutions.javaBackup.gui.web.admin;

import org.itsolutions.javaBackup.gui.web.admin.view.AdminMainView;
import org.itsolutions.javaBackup.gui.web.admin.view.AdminMenu;
import org.itsolutions.javaBackup.gui.web.admin.view.BackupView;
import org.itsolutions.javaBackup.ioc.AJavaBackupModule;
import org.itsolutions.javaBackup.spi.EModule;

import com.google.inject.servlet.ServletScopes;

/**
 * Module just for the admin gui.
 * @author Tomas Fecko
 */
public final class AdminModule extends AJavaBackupModule {

	@Override
	protected void configure() {
        bind(AdminMainView.class).in(ServletScopes.SESSION);
        bind(BackupView.class).in(ServletScopes.SESSION);
        bind(AdminMenu.class).in(ServletScopes.SESSION);
	}

	@Override
	protected EModule getModule() {
		return EModule.GUI_WEB;
	}
}





